﻿using System;
using ParticlePlayground;

namespace UnityEngine
{
	// Token: 0x020000E9 RID: 233
	public class PlaygroundCycleSnapshots : MonoBehaviour
	{
		// Token: 0x06000531 RID: 1329 RVA: 0x0001FF54 File Offset: 0x0001E154
		public virtual void Start()
		{
			this.particles = base.GetComponent<ParticlePlayground.PlaygroundParticlesC>();
			this.sceneScript = Object.FindObjectOfType<global::PlaygroundScenes>();
		}

		// Token: 0x06000532 RID: 1330 RVA: 0x0001FF70 File Offset: 0x0001E170
		public virtual void OnGUI()
		{
			if (GUI.Button(new Rect((float)(Screen.width - 160), 10f, 150f, 32f), this.particles.snapshots[this.particles.loadFrom % this.particles.snapshots.Count].name))
			{
				this.particles.Load(++this.particles.loadFrom);
				if (this.sceneScript != null)
				{
					this.sceneScript.UpdateParticlesLabel();
				}
			}
		}

		// Token: 0x04000540 RID: 1344
		public ParticlePlayground.PlaygroundParticlesC particles;

		// Token: 0x04000541 RID: 1345
		public global::PlaygroundScenes sceneScript;
	}
}
